home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts28-10
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: Help:: Link Error
- Date: Tue, 12 Mar 96 03:32:59 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4i2r9r$nfn@sam.inforamp.net>
- References: <4i1l3f$kgj@netnews.ntu.edu.tw>
- NNTP-Posting-Host: ts28-10.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4i1l3f$kgj@netnews.ntu.edu.tw>,
- ru@zeus.ee.ntu.edu.tw (Jyh-ru Lee) wrote:
- >Hello:
- >
- > I write a program for windows 3.1, using VC 1.52
- > Following error message appear as VC link my exe file:
- > "LINK: error: automatic data segment plus heap exceed 64K"
- > Would you please tell me how to solve it ?
- > Thanks a lot !
-
- This was from Borland, but it still applies
- -------------------------------------------
- The sum of the DGROUP physical segment, local heap, and stack exceeds 64K. Fix
- this by specifying smaller values for the HEAPSIZE and STACKSIZE statements in
- the module definition file or by decreasing the size of the near data in
- DGROUP. The map file shows the sizes of the component segments in DGROUP. The
- /s TLINK command-line option is useful for determining how much each module
- contributes to DGROUP.
- -------------------------------------------
-
- Basically, I think this should also mention that the error can be overcome by
- going to a better memory model. If you use a memory model that only uses near
- data (small and medium models would run into problems here), you can go to a
- memory model that uses far data (compact, medium, huge or flat) and save data
- segment space.
-
- Agrivar
-